home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #14
/
Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO
/
prog_bas
/
mdbguru.zip
/
TEXTBOX.COD
< prev
next >
Wrap
Text File
|
1995-02-21
|
510b
|
17 lines
; default code for a text box control
; got focus to change background color
sub <<controlname>>_GotFocus(Index as integer)
<<controlname>>(Index).BackColor = HIGH_BACKCOLOR
<<controlname>>(Index).SelLength = len(<<controlname>>(Index).Text)
<<controlname>>(Index).SelStart = 0
end sub
; got focus to change background color
sub <<controlname>>_LostFocus(Index as integer)
<<controlname>>(Index).BackColor = NORM_BACKCOLOR
<<controlname>>(Index).SelLength = 0
end sub